Manage black version using requirement file - #207
Conversation
7eec9cb to
210b252
Compare
| # Validate Code was formatted with Black | ||
| - "/tmp/black --check setup.py tests aws_lambda_builders" | ||
| # Validate Code was formatted with Black, black is only supported in Python 3 | ||
| - if [[ $PYTHON_VERSION != "2"* ]]; then black --check setup.py tests aws_lambda_builders; fi |
There was a problem hiding this comment.
is there any reason that you use $PYTHON_VERSION != "2"* but not $PYTHON_VERSION == "3"* or $PYTHON_VERSION -gt "2"*?
There was a problem hiding this comment.
Changed to if [[ $PYTHON_VERSION > "3" ]]; then black --check setup.py tests aws_lambda_builders; fi
There was a problem hiding this comment.
This might be pedantry, but the > operator compares lexicographically; is that the intention?
There was a problem hiding this comment.
either lexicographically or numerically should be able to specify "python 3 or higher" right?
|
As discussed with @hoffa offline, with
|
* Added Dynamic Encoding Selection Based on Windows System Default * Fixed dotnet output system dependent encoding * Updated test_custom_make urllib3 Version * Reformatted with black * Rollback Changes to popen for Python 2 Support * Added Doc Page for DotNet Output Encoding * fix(ruby): use stdout stream to raise exceptions from bundler - relevant error information is in stdout instead of stderr for bundler. * chore: bump version to 1.1.0 * chore: Upgrade pytest to 6.1.1 * chore: Upgrade mock to 4.0.2 * chore: Upgrade parameterize to 0.7.4 * chore: Upgrade coverage to 5.3 * chore: Upgrade flake8 to 3.8.4 * chore: Upgrade pylint to 2.6.0 * Consider using Python 3 style super() without arguments (super-with-arguments) * Implicit string concatenation found in assignment (implicit-str-concat) * Consider explicitly re-raising using the 'from' keyword (raise-missing-from) * Only install backports.tempfile for 2.7 & 3.6 * python 2 fallbacks (pylint & mock) * Revert "Consider using Python 3 style super() without arguments (super-with-arguments)" This reverts commit 44284ea. * Revert "Consider explicitly re-raising using the 'from' keyword (raise-missing-from)" This reverts commit cd7c16e. * Disable rules that affecting Python 2 * Manage black version using requirement file (#207) * chore: Manage black version in dev.txt * chore: Update appveyor, use black in pip * chore: Add pre-commit-config * chore: Format with black 20.8b1 * chore: Add make pr2.7 for Python 2 that does not run black * chore: Remove python patch version in AppVeyor to be more robust (#213) * chore: Remove biased language (#212) * fix: run GlobalToolInstallAction in a lock block and only once (#214) * fix: run GlobalToolInstallAction in a lock block and only once * chore: change field name and update unit tests * chore: black formatting * fix: change tests to use threadpool for py2 * chore: update assert call and change usage of Executor * chore: bump version to 1.2.0 (#218) Co-authored-by: Wilton Wang <CoshUS@users.noreply.github.com> Co-authored-by: Sriram Madapusi Vasudevan <3770774+sriram-mv@users.noreply.github.com> Co-authored-by: Sriram Madapusi Vasudevan <srirammv@amazon.com> Co-authored-by: Sam Liu <xinhol@amazon.com> Co-authored-by: _sam <3804518+aahung@users.noreply.github.com>
Issue #, if available:
Description of changes:
Manage black in dev.txt, almost the same as aws/serverless-application-model#1748
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.